// Dom7
var $$ = Dom7;

// Framework7 App main instance
var app = new Framework7({
    root: '#app', // App root element
    id: 'io.framework7.testapp', // App bundle ID
    name: 'Framework7', // App name
    theme: 'ios', // Automatic theme detection
    // Enable swipe panel
    panel: {
        swipe: 'left',
    },
    view: {
        stackPages: true, // 多级页面缓存
        pushState: true, // 开启 url 根据路由 hash 变化
    },
    // App root data
    data: function() {
        return {
            user: {
                firstName: 'John',
                lastName: 'Doe',
            },
        };
    },
    // Page Events
    on: {
        pageInit: function(e) {
            console.log('页面初始化！！！', e);
            // console.log('pageInit app.routes', app.routes);
        },
    },
    // App routes
    routes: routes,
});

// Init/Create main view
var mainView = app.views.create('.view-main', {
    url: '/'
});
var calendarDefault3 = app.calendar.create({
    inputEl: '#demo-calendar-default3',
});
$$("#demo-calendar-default3").on("change", function(e) {
    //获取input输入的值
    console.log(e.target.value);
});
console.log('还是会请求数据！！！ ')